﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web;

namespace Model
{

    [MetadataType(typeof(ProductCatalog_Metadata))]
    [DisplayName("产品分类")]
    public partial class ProductCatalog
    {
        public ProductCatalog()
        {
            this.Id = Guid.NewGuid();
            this.UserId = new Guid(HttpContext.Current.User.Identity.Name);
        }

        public class ProductCatalog_Metadata
        {
            [ScaffoldColumn(false)]
            public Guid Id { get; set; }

            [ScaffoldColumn(false)]
            public Guid UserId { get; set; }

            [DisplayName("分类名称")]
            [Required]
            public object CatalogName { get; set; }

            [DisplayName("分类编号")]
            [Required]
            public object CatalogCode { get; set; }



        }
    }
}
